package com.jrzh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

import com.jrzh.filter.SessionPreFilter;

@SpringBootApplication
@EnableRedisHttpSession
@EnableDiscoveryClient
@EnableZuulProxy
public class LoginApplication{
	public static void main(String[] args) {
		SpringApplication.run(LoginApplication.class, args);
	}
	
	@Bean
	public SessionPreFilter sessionPreFilter(){
		return new SessionPreFilter();
	}
}
